home *** CD-ROM | disk | FTP | other *** search
/ PC Shareware 1997 February / PC Shareware 1997-02.iso / programy / e! / technote / ewtech.$18 / ewtech.018
Encoding:
Text File  |  1995-03-05  |  2.9 KB  |  73 lines

  1. E! for Windows - Technical Note #018
  2. ****************************************
  3. Using the Visual Basic Function Scanner
  4. ****************************************
  5.  
  6. There are a few extra steps that you should follow when using the new
  7. function scanner for Visual Basic.
  8.  
  9. Installing the scanner is very easy: you just have to copy VBP.SCN to your
  10. \EW directory. E! will automatically recognize this new scanner.
  11.  
  12. To benefit from the Function Tagging feature, you have to setup a project
  13. file containing the list of all the source files involved in your
  14. project. Use the "Commands" dialog box as described in the documentation
  15. to setup a command set for .FRM and .BAS files. See below for a
  16. description of the necessary steps if you are not familiar with this
  17. feature.
  18.  
  19. Please read the "Compiler Support" and "Function Tagging" sections in
  20. EW.WRI anyway.
  21.  
  22. The default extensions supported by VBP.SCN are .FRM and .BAS. If you want
  23. additional extensions to be supported, please see the relevant paragraph
  24. in the "Function Tagging" section of EW.WRI.
  25.  
  26. BEWARE: E! will not activate the "Scan Project Files" menu unless at
  27. least one compilation command has been defined. This is a problem with
  28. Visual Basic because you can obviously not launch compilations from the
  29. command line. However, you can enter any dummy command in the "Compile
  30. Command" field. Since you'll never launch it, this will do no harm.
  31.  
  32. Here are the steps to activate Function Tagging for your VB project:
  33.  
  34. 1. Create the E! Project File. Usually it will be named EW.PRJ and will
  35. be stored in your project directory.
  36.  
  37. 2. Open the "Commands" dialog box from the Compile menu. If the Count
  38. variable is not set to 0, click on the "Delete" button until all items
  39. have been removed.
  40.  
  41. 3. Enter bas;frm in the "File Extensions" field. You can add other
  42. extensions if you wish.
  43.  
  44. 4. Enter "foo" in the "Compile Command" field.
  45.  
  46. 5. Enter the path to your project directory in the "Work Directory"
  47. field.
  48.  
  49. 6. Enter "EW.PRJ" in the "Project File" field. Use a full pathname if
  50. EW.PRJ is not stored in your work directory.
  51.  
  52. 7. Enter "VB" (or any other 8 character name) in the "Set Name" field.
  53. Don't forget this. Otherwise you will overwrite the current command set if
  54. any.
  55.  
  56. 8. Click Add and then Save. Close the dialog box.
  57.  
  58. From now, when you will be editing .BAS or .FRM file, the "Scan Project
  59. Files" menu should be enabled. Select this command to Scan your project
  60. files. After scanning, double-clicking with the right mouse button on a
  61. Function or Sub name while the Ctrl key is depressed will trigger a jump
  62. to the location where that function or procedure has been defined.
  63.  
  64. You can also use the "Scan" and the "Jump to Definition" buttons if you
  65. have added them to your toolbar.
  66.  
  67. If your source files change, E! will warn you when trying to jump to a
  68. definition that is no longer valid. It is recommended to rescan the
  69. project at this time.
  70.  
  71.  
  72. Patrick Philippot, MainSoft sarl, 02-28-95
  73.